﻿namespace FrameworkCore.Attributes;

/// <summary>
/// 映射特性
/// </summary>
public class MapAttribute : Attribute
{
    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="targetTypes"></param>
    public MapAttribute(params Type[] targetTypes)
    {
        TargetTypes = targetTypes;
    }

    /// <summary>
    /// 目标类型
    /// </summary>
    public Type[] TargetTypes { get; }
}
